The preview component supplies a single function for displaying movie previews. If your preview component does not handle events (that is, does not contain time-based data), you should use this function.
The PreviewShowData function allows you to display a preview if your preview component does not handle events.
pascal ComponentResult PreviewShowData (pnotComponent p,
OSType dataType,
Handle data,
const Rect *inHere);
If your preview component can display the data for the preview quickly enough that it does not need a cache (that is, you have set the pnotComponentNeedsNoCache flag), you should consider the PreviewShowData function an initialization function. Therefore, you should remember the location of the preview rectangle and set up any necessary data structures. An update event is generated after this function for your initial drawing. In this case, the type of the handle in the data parameter is an alias (that is, it is the rAliasType resource type), and the handle contains an alias to the file to be previewed.